<?php
include 'db.php';
include 'cart.php';
include 'inc/header.php';
?>
<!DOCTYPE HTML>
<html>
    <head>
    <meta charset=utf-8>
    <title>LEDLAMPS</title>
   
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    <script src="js/modernizr-1.7.min.js"></script><!-- this is the javascript allowing html5 to run in older browsers -->

     
    <link rel="stylesheet" type="text/css" href="css/reset.css" media="screen" title="html5doctor.com Reset Stylesheet" />
    
    <link rel="stylesheet" href="css/default.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="screen" />
    
    <!-- in the CSS3 stylesheet you will find examples of some great new features CSS has to offer -->
    <link rel="stylesheet" type="text/css" href="css/css3.css" media="screen" />
    
    <!-- general stylesheet contains some default styles, you do not need this, but it helps you keep a uniform style -->
    <link rel="stylesheet" type="text/css" href="css/general.css" media="screen" />
    
    <!-- grid's will help you keep your website appealing to your users, view 52framework.com website for documentation -->
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
  
    
    
    </head>

<body>
<?php
if(isset($_POST['clearcart'])){
	$sql = "SELECT * FROM items ORDER by itemDesc";
	$update = mysql_query($sql);
		while($cartrow_edit = mysql_fetch_array($update)){
			if($_SESSION['item_'.$cartrow_edit['itemId']] == $cartrow_edit['itemId']){
				$_SESSION['item_'.$cartrow_edit['itemId']] = NULL;
				$_SESSION['item_'.$cartrow_edit['itemId'].'_qty'] = NULL;
			}
		}
	}
?>

<?php get_header('products'); ?>
<section class="shopcart-wrap">
	<div class="cartStatus"><a href="#" class="cartView">show cart</a><p><?php cartStatus(); ?></p></div>
	<div class="clear"></div>
    
    


	


<section class="row">
 	<div class="rounded j-products box_shadow box-align-center">
    
    		<div style="padding:15px;">
        <?php
             JShowCart();			 
    ?>
    </div>
           
  	</div>  
</section>
 
<footer class="row">

	<div class="col_16 col">all rights reserved &copy; <a href="http://www.enavu.com">enavu network</a> | 52framework the framework from the future</div>

</footer>
 
</body>    <!-- start sidebarbox: Section 2 -->
<script src="js/bootstrap.min.js"></script>
    <script type="text/javascript">
		//for filters
		$(document).ready(function() {
			//for tooltip hovers
			$('.updateLink').tooltip({placement: 'right'});
			$('.edit-customer').tooltip();
			$('.edit-salesman').tooltip();
			$('.view-invoice').tooltip();		
		});
    </script>

</html>
